package com.vito.oa.act.dao;

import java.util.List;
import java.util.Map;

import com.vito.act.model.ActExApproveInfoModel;
import com.vito.oa.act.extend.model.OaActExApproveInfoModel;
import com.vito.oa.act.model.OaActCommentAttentionModel;
import com.vito.oa.act.model.OaActCommentModel;

public interface OaActCommentMapper {
	
	/**
	 * 保存评论
	 * @param oaActCommentAttentionModel
	 * @return
	 */
	public int saveComment(OaActCommentModel oaActCommentModel);
	/**
	 * 保存评论关注人
	 * @param oaActCommentModel
	 * @return
	 */
	public int saveCommentAttention(OaActCommentAttentionModel oaActCommentAttentionModel);
	
	/**
	 * 查询关于我的评论
	 * @param oaActCommentModel
	 * @return
	 */
	public List<OaActCommentModel> getCommentListByBusinessId(OaActCommentModel oaActCommentModel);
	
	
	/**
	 * 和我相关的审批
	 * @param oaActCommentModel
	 * @return
	 */
	public List<Map<String, String>> getCommentApproveByPage(OaActExApproveInfoModel actExApproveInfoModel);
	
	public int getCommentApproveCount(OaActExApproveInfoModel actExApproveInfoModel);

}
